<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>


	<?php 
		//print_r ($this->input->post());
		
		echo form_fieldset('Form Kaos ITB Senior Programming Contest 2011',array('class' => 'form'));
		
		echo '<div class="userinfo">';
		$content= 'Ukuran kaos yang tertera disini adalah perkiraan dan tidak sepenuhnya tepat. Finalis yang tidak mengisi form lebih dari tanggal 22 Oktober 2011 akan diberikan kaos dengan ukuran all-size (ML)';
		//jelasin file apa yg boleh diupl/ overwrite etc.
		echo img(
			array(
			  'src' => 'images/tabel_kaos.png',
			  'alt' => 'Tabel ukuran kaos itbpc 2011',
			  'class' => 'center',
			  'width' => '340',
			//  'height' => '200',
			  'title' => 'Tabel ukuran kaos itbpc 2011',
			//  'rel' => 'lightbox',
			));
		echo '<p class="content">'.$content.'</p>';
		
		echo form_open('spc/kaos_validasi',array('class' => 'inline'));
		//$req= "<span id='req'> * </span>";
		
		$options = array(
                  'S'  => 'S',
                  'M'    => 'M',
                  'ML'   => 'ML',
                  'L' => 'L',
                  'XL' => 'XL',
                  'XXL' => 'XXL',
                  'XXXL' => 'XXXL',
                );

		echo '<div class="center">';
		echo '<strong>Ukuran kaos #1 : </strong>';
		echo form_dropdown('spc_kaos_1', $options, $userdata->spc_kaos_1==''?'ML':$userdata->spc_kaos_1);
	
		echo '<br/><strong>Ukuran kaos #2 : </strong>';
		echo form_dropdown('spc_kaos_2', $options, $userdata->spc_kaos_2==''?'ML':$userdata->spc_kaos_2);
		
		echo '<br/><strong>Ukuran kaos #3 : </strong>';
		echo form_dropdown('spc_kaos_3', $options, $userdata->spc_kaos_3==''?'ML':$userdata->spc_kaos_3);
		echo '</div>';
		br();
		echo form_submit(array(
				'name' => 'data_valid',
				'class' => 'kaos')
				, 'Unggah data kaos');
		echo form_close();
	
		echo form_open('spc/index',array('class' => 'inline'));
		echo form_submit(array(
				'name' => 'action',
				'class' => 'button_n')
				, 'Kembali');
		echo form_close();
				
		echo '</div>';
		echo form_fieldset_close(); 
	
	?>